import axios from 'axios'
import { getToken } from './auth'

// 创建axios实例
const request = axios.create({
	baseURL: '' // api 的 base_url
})
request.defaults.headers.common['Authorization'] = getToken()

export default request